home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-02 / pas_all.zip / TI426.ASC < prev    next >
Text File  |  1992-08-12  |  2KB  |  133 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.   PRODUCT  :  TURBO PASCAL DATABASE TOOLBOX          NUMBER  :  426
  9.   VERSION  :  4.0
  10.        OS  :  MS-DOS, PC-DOS
  11.      DATE  :  AUGUST 29, 1988                          PAGE  :  1/2
  12.  
  13.     TITLE  :  DATABASE TOOLBOX SUGGESTIONS AND CORRECTIONS
  14.  
  15.  
  16.  
  17.  
  18.   This handout addresses some  problems which have been reported by
  19.   users of the Turbo Pascal DataBase ToolBox version 4.0
  20.  
  21.   Correction
  22.  
  23.   When accessing an Index File that allows duplicate  keys  and has
  24.   greater than 32K records, the  Index  Key  routines,  FindKey and
  25.   SearchKey will be  unsuccessful  in finding keys for records past
  26.   32K.  By making the following changes to TACCESS.PAS, this proble
  27.  
  28.   1.    In  the TaCompKeys procedure change the old code to look as
  29.   follows:
  30.  
  31.   begin
  32.     if TaKeyStr(K1) = TaKeyStr(K2) then
  33.     begin
  34.       if not Dup or (DR1 = DR2) then
  35.         TaCompKeys := 0
  36.       else
  37.         if DR1 > DR2 then
  38.           TaCompKeys := 1
  39.         else
  40.           TaCompKeys := -1;
  41.     end
  42.     else
  43.       if TaKeyStr(K1) > TaKeyStr(K2) then
  44.         TaCompKeys := 1
  45.       else
  46.         TaCompKeys := -1;
  47.   end;
  48.  
  49.  
  50.   2.   Save  the    changes to TACCESS.PAS.  Call TaBuild  for each
  51.   .TYP file to  create a new  TACCESS.TPU file.  Rebuild  all Index
  52.   Files.
  53.  
  54.  
  55.   Recommended Suggestion
  56.  
  57.   Users have reported unusual errors  occurring  in  their DataBase
  58.   ToolBox programs.  Many of these errors can be solved  by running
  59.   TaBuild with the  /W+  option  to  display  the  worksheet.   The
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.   PRODUCT  :  TURBO PASCAL DATABASE TOOLBOX          NUMBER  :  426
  75.   VERSION  :  4.0
  76.        OS  :  MS-DOS, PC-DOS
  77.      DATE  :  AUGUST 29, 1988                          PAGE  :  2/2
  78.  
  79.     TITLE  :  DATABASE TOOLBOX SUGGESTIONS AND CORRECTIONS
  80.  
  81.  
  82.  
  83.  
  84.   worksheet will show that 1,000  records will be the expected size
  85.   of
  86.  
  87.   For existing Data Files, where  greater  than  1,000  records are
  88.   expected, it is recommended  that  you  build  a new TACCESS unit
  89.   using  the  worksheet  to set the maximum number of records. This
  90.   requires that all Index Files be rebuilt.
  91.  
  92.  
  93.   DISCLAIMER: You  have the right to use this technical information
  94.   subject to the terms  of  the  No-Nonsense License Statement that
  95.   you received with  the  Borland product to which this information
  96.   pertains.
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.